import type { MemberListsReq, MemberListsRes } from './types';
/**
 * 买家相关接口
 */
import { get, post } from '@/utils/request';

/** 获取买家列表 */
export const getMemberLists = (params?: MemberListsReq) =>
  get<MemberListsRes>('/syapi/member/lists', { params });

/** 获取赊欠总额 */
export const getArrearsTotal = () =>
  get<MemberListsRes>('/syapi/member/lists', {
    params: {
      options_order_status_value: '2',
      options_maijia_status_value: '999',
      keywords: '',
      page: 1,
      limit: 10,
    },
  });

export const searcheShouyinMember = (params?: any) => post<any>('/syapi/member/searcheShouyinMember', { params });
export const updateUserInfo = (params?: any) => post<any>('/syapi/member/updateUserInfo', { params });
